import request from '@/utils/request'

//小程序推荐商家列表
export function merchantShopAllList() {
    return request({
        url: '/merchant/shop/recommend/v1/shop/all/list',
        method: 'get'
    })
}
//推荐商家排序移动保存
export function addMerchantShop(data) {
    return request({
      url: '/merchant/shop/recommend/v1',
      method: 'put',
      data
    })
}

//推荐商户列表
export function merchantShopRecommendList() {
    return request({
      url: '/merchant/shop/recommend/v1/shop/recommend/list',
      method: 'get'
    })
}
// 推荐商户添加保存
export function addMerchantShopRecommend(data) {
    return request({
      url: '/merchant/shop/recommend/v1/shop/recommend/save',
      method: 'put',
      data
    })
}
// 推荐商户选择列表
export function merchantShopSelectList(data) {
    return request({
      url: '/merchant/shop/recommend/v1/shop/select/list',
      method: 'post',
      data
    })
}

// 显示区域列表
export function kyyBannerConfigGovAreaList() {
    return request({
      url: '/kyy/banner/config/gov/area/list',
      method: 'get',
    })
}
// 轮播图列表
export function kyyBannerConfigList(configType) {
    return request({
      url: `/kyy/banner/config/list/${configType}`,
      method: 'get',
    })
}
// 轮播图保存
export function addKyyBannerConfig(data) {
    return request({
      url: '/kyy/banner/config/save',
      method: 'put',
      data
    })
}

// 查询领券中心优惠券 (不分页)
export function platformCouponConfigV1List(params) {
  return request({
    url: '/platform/coupon/config/v1/list',
    method: 'get',
    params
  })
}

// 优惠券配置排序移动保存
export function platformCouponConfigSortSave(data) {
  return request({
    url: '/platform/coupon/config/v1/coupon/config/sort/save',
    method: 'put',
    data
  })
}

// 保存优惠券配置
export function platformCouponConfigSave(data) {
  return request({
    url: '/platform/coupon/config/v1/coupon/config/save',
    method: 'put',
    data
  })
}

// 领券活动配置列表
export function platformCouponConfigList(params) {
  return request({
    url: '/platform/coupon/config/v1/platformCouponConfigList',
    method: 'get',
    params
  })
}
// 优惠券活动名称下拉查询
export function getPlatformCouponSelect(params) {
  return request({
    url: '/common/v1/getPlatformCouponSelect',
    method: 'get',
    params
  })
}

